@keyframes wipes {
  0% {
    background-position: 100% 100%;
  }
  to {
    background-position: 0 0;
  }
}
body {
  width: 80%;
  margin: 0 auto;
  background: rgb(240, 240, 240);
}

h1 {
  text-align: center;
}

h2 {
  margin-top: 72px;
  margin-bottom: 32px;
}

.flex-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* flex-wrap: wrap; */
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0 1.5rem rgb(0 0 0 / 10%);
  gap: 16px 16px;
  /* justify-content: start; */
}

.flex-container .card {
  box-sizing: border-box;
  overflow: hidden;
  height: 200px;
  margin: 0;
  position: relative;
  /* border-radius: 0.5rem; */
}
.card:hover {
  border-radius: 0;
}

.card .layer {
  z-index: 1;
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  left: 0;
  background: #fcede996;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
  backdrop-filter: blur(5px);
}
.card:hover .layer {
  top: 100%;
}

.card:hover a {
  /* background-image: linear-gradient(
    135deg,
    #efb5a4e9 0%,
    #fec063e9 50%,
    #efb5a4e9 100%
  );
  color: #64200c; */
  backdrop-filter: blur(2px);
}

.flex-container p {
  height: 200px;
  margin: 0;
}
.flex-container p a {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  border-radius: 4px;
  bottom: 16px;
  left: 50%;
  transform: translate(-50%);
  text-decoration: none;
  color: rgb(255, 255, 255);
  text-align: center;
  width: 90%;
  font-family: "微软雅黑";
  /* font-weight: 700; */
  font-size: 16px;
  background: linear-gradient(
    109.9deg,
    rgba(255, 0, 0, 0.736) 30.4%,
    #ff6b00 77.46%
  );
  line-height: 3;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(249, 60, 0, 0.25);
}

.flex-container p a:hover:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background-image: linear-gradient(
    125deg,
    hsla(0, 0%, 100%, 0) 30%,
    hsla(0, 0%, 100%, 0.2) 50%,
    hsla(0, 0%, 100%, 0) 70%
  );
  background-size: 200%;
  -webkit-animation: wipes 1s infinite;
  animation: wipes 1s infinite;
}

#html {
  background-image: url(https://www.freecodecamp.org/news/content/images/2020/01/html-examples.jpeg);
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 0.5rem 0 0 0;
}

#cssfont {
  background-image: url(https://oss-yangjh.oss-cn-chengdu.aliyuncs.com/images/20221005124659.png);
  background-size: cover;
  background-repeat: no-repeat;
}

#cssbg {
  background-image: url(https://oss-yangjh.oss-cn-chengdu.aliyuncs.com/images/20221005125027.png);
  background-size: cover;
  background-repeat: no-repeat;
}

#cssflex {
  background-image: url(https://oss-yangjh.oss-cn-chengdu.aliyuncs.com/images/20221005125551.png);
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 0 0.5rem 0 0;
}

#cssani {
  background-image: url(https://tse2-mm.cn.bing.net/th/id/OIP-C.0DMQtvA4oDukvyTGGhK4rgHaD3?pid=ImgDet&rs=1);
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 0 0 0 0.5rem;
}

#js-basic {
  background-image: url(https://ts1.cn.mm.bing.net/th/id/R-C.2af5f8deda7ae8e0391b3bc682151af2?rik=%2b4FszKYT4NLqbw&pid=ImgRaw&r=0);
  background-size: cover;
  background-repeat: no-repeat;
}

footer p {
  text-align: center;
  font-size: 12px;
  background: #1e1e1e;
  color: #fff;
  height: 80px;
  line-height: 80px;
  margin: 160px 0 0;
}
